package com.emr.web.controller.emr;


import java.util.List;
import java.util.Map;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.emr.common.annotation.Log;
import com.emr.common.enums.BusinessType;
import com.emr.module.domain.Jianyanjg;
import com.emr.module.service.IJianyanjgService;
import com.emr.web.core.base.BaseController;
import com.emr.framework.web.page.TableDataInfo;
import com.emr.common.base.AjaxResult;

/**
 * 检验结果 信息操作处理
 * 
 * @author emr
 * @date 2019-02-25
 */
@Controller
@RequestMapping("/module/jianyanjg")
public class JianyanjgController extends BaseController
{
    private String prefix = "module/jianyanjg";
	
	@Autowired
	private IJianyanjgService jianyanjgService;
	
	@RequiresPermissions("module:jianyanjg:view")
	@GetMapping()
	public String jianyanjg()
	{
	    return prefix + "/jianyanjg";
	}
	
	/**
	 * 查询检验结果列表
	 */
	@RequiresPermissions("module:jianyanjg:list")
	@PostMapping("/list")
	@ResponseBody
	public TableDataInfo list(Jianyanjg jcjg)
	{
		startPage();
        List<Map<String,Object>> list = jianyanjgService.selectJianyanjgList(jcjg);
		return getDataTable(list);
	}
	

}
